package com.example.back.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.back.entity.InStore;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface InStoreMapper extends BaseMapper<InStore> {
    @Select("select * from instore where in_storeid = #{storeId} order by in_date ASC")
    List<InStore> findAllByStoreId(String storeId);

    @Update("update instore set real_ton =  #{realTon} where in_id = #{inId}")
    int updateRealTon(String inId,double realTon);


}
